export const optionBase = {
  height: 'auto',
  header: false,
  calcHeight: 22,
  tip: false,
  searchShow: false,
  searchMenuSpan: 6,
  border: true,
  index: true,
  addBtn: false,
  delBtn: false,
  editBtn: false,
  viewBtn: false,
  menu: false,
  dialogClickModal: false,
  column: [
    {
      label: "功能",
      prop: "featureName",
      width: 120,
    },
    {
      label: "topic类",
      prop: "topic",
      type: "input",
    },
    {
      label: "操作权限",
      prop: "accessName",
      width: 100,
    },
    {
      label: "描述信息",
      prop: "topicDesc",
      width: 400,
    },
  ]
}

export const optionTsl = {
  height: 'auto',
  header: false,
  calcHeight: 22,
  tip: false,
  searchShow: false,
  searchMenuSpan: 6,
  border: true,
  index: true,
  addBtn: false,
  delBtn: false,
  editBtn: false,
  viewBtn: false,
  menu: false,
  dialogClickModal: false,
  column: [
    {
      label: "功能",
      prop: "featureName",
      width: 120,
    },
    {
      label: "topic类",
      prop: "topic",
      type: "input",
    },
    {
      label: "操作权限",
      prop: "accessName",
      width: 100,
    },
    {
      label: "描述信息",
      prop: "topicDesc",
      width: 400,
    },
  ]
}

export const optionCustom = {
  height: 'auto',
  calcHeight: 22,
  tip: false,
  searchShow: false,
  searchMenuSpan: 6,
  border: true,
  index: true,
  dialogWidth: 500,
  dialogClickModal: false,
  column: [
    {
      label: "",
      prop: "alert",
      type: "input",
      slot: true,
      hide: true,
      span: 24,
    },
    {
      label: "功能",
      prop: "feature",
      type: "select",
      dicUrl: "/blade-system/dict/dictionary?code=topic_feature",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      rules: [{
        required: true,
        message: "请选择功能",
        trigger: "blur"
      }],
      width: 120,
      search: true,
      span: 24,
    },
    {
      label: "topic预览",
      prop: "topicPreview",
      type: "input",
      slot: true,
      hide: true,
      span: 24,
    },
    {
      label: "topic类",
      prop: "topic",
      type: "input",
      search: true,
      rules: [{
        required: true,
        message: "请输入topic类",
        trigger: "blur"
      }],
      span: 24,
    },
    {
      label: "操作权限",
      prop: "access",
      type: "select",
      dicUrl: "/blade-system/dict/dictionary?code=topic_access",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      rules: [{
        required: true,
        message: "请选择操作权限",
        trigger: "blur"
      }],
      width: 100,
      search: true,
      span: 24,
    },
    {
      label: "描述信息",
      prop: "topicDesc",
      type: "textarea",
      width: 400,
      span: 24,
    },
  ]
}

